home *** CD-ROM | disk | FTP | other *** search
/ Aminet 48 / Aminet 48 (2002)(GTI - Schatztruhe)[!][Apr 2002].iso / Aminet / text / edit / vim60rt.lha / Vim / vim60 / syntax / xxd.vim < prev    next >
Encoding:
Text File  |  2001-05-10  |  1.1 KB  |  42 lines

  1. " Vim syntax file
  2. " Language:        bin using xxd
  3. " Version:        5.4-3
  4. " Maintainer:    Dr. Charles E. Campbell, Jr. <Charles.E.Campbell.1@gsfc.nasa.gov>
  5. " Last Change:    March 19, 1999
  6. "  Notes: use :help xxd   to see how to invoke it
  7.  
  8. " For version 5.x: Clear all syntax items
  9. " For version 6.x: Quit when a syntax file was already loaded
  10. if version < 600
  11.   syntax clear
  12. elseif exists("b:current_syntax")
  13.   finish
  14. endif
  15.  
  16. syn match xxdAddress            "^[0-9a-f]\+:"        contains=xxdSep
  17. syn match xxdSep    contained    ":"
  18. syn match xxdAscii                "  .\{,16\}\r\=$"hs=s+2    contains=xxdDot
  19. syn match xxdDot    contained    "[.\r]"
  20.  
  21. " Define the default highlighting.
  22. " For version 5.7 and earlier: only when not done already
  23. " For version 5.8 and later: only when an item doesn't have highlighting yet
  24. if version >= 508 || !exists("did_xxd_syntax_inits")
  25.   if version < 508
  26.     let did_xxd_syntax_inits = 1
  27.     command -nargs=+ HiLink hi link <args>
  28.   else
  29.     command -nargs=+ HiLink hi def link <args>
  30.   endif
  31.  
  32.  HiLink xxdAddress    Constant
  33.  HiLink xxdSep        Identifier
  34.  HiLink xxdAscii    Statement
  35.  
  36.  delcommand HiLink
  37. endif
  38.  
  39. let b:current_syntax = "xxd"
  40.  
  41. " vim: ts=4
  42.